<?php

namespace app\index\validate;

use think\Validate;

class From extends Validate
{
    protected $rule = [
        'realname' => 'require',
        'tel' => 'require',
        'emaill' => 'email', 
    ];

    protected $message = [
        'realname.require' => '姓名不能为空',
        'tel.require' => '联系电话不能为空',
        'emaill.email' => '邮箱不是个有效的邮箱',
    ];

   
}